﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_BaoCaoSanPham : System.Web.UI.Page
{
    protected void checkAlreadyLogin()
    {
        if (Session["UserID"].ToString() == null)//Session["UserType"].ToString() != "QuanTri" ||
        {
            Response.Redirect("Login.aspx");
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            checkAlreadyLogin();
        }
    }
    protected void btnBaoCao_Click(object sender, EventArgs e)
    {
        Response.Redirect("BCSanPham.aspx?tungay=" + txttungay.Text + "&denngay=" + txtdenngay.Text + "");
    }

    public string TuNgay
    {
        get
        {
            return txttungay.Text;
        }
    }
    public string DenNgay
    {
        get
        {
            return txtdenngay.Text;
        }
    }
}